how to find positive negative numbers in java